/**
 * 安卓白金英雄坛制作组 <br>
 * 文件名：NewSaveFile.java <br>
 * 创建时间：2014-7-31 下午4:15:26 <br>
 * 所属项目：GmudEX <br>
 *
 * @author 12548 <br>
 */
package lostland.gmud.exv2.data;

import java.util.ArrayList;

import cn.bmob.v3.BmobObject;
import lostland.gmud.exv2.Game;
import lostland.gmud.exv2.GameConstants;
import lostland.gmud.exv2.Gmud;

/**
 * 类名：NewSaveFile <br>
 * 说明：整合存档
 *
 * @author 12548
 */
public class SaveData extends BmobObject {

	private static final long serialVersionUID = 6796083619013824171L;
	public String username = "";
	public GameData data;
	public MainChar mc;
	public ArrayList<MainChar> oldmc;

	public int ver = GameConstants.SAVEGAME_VER;

	private static SaveData _instance = null;

	public static SaveData getInstance() {
		if (_instance == null) {
			_instance = new SaveData();
		}

		_instance.data = Game.getInstance().data;
		_instance.mc = Gmud.mc;
		_instance.oldmc = Game.getInstance().oldmc;

		return _instance;
	}


}
